{template 'header'}
{template 'autoHeader','auto'}
<div class="shop-guide layout960 owners">
    <div class="shop-guide-nav fn-left">
        <h2>车主信息</h2>
	    <ul>
		    {loop $userInfo $v}
		    <li {if $areaid==$v['areaid'] ||!$areaid&&$v[areaid]==3421 } class="selected"{/if}><a href="{url('auto/ownersList', array('modelid'=>$modelid, 'areaid'=> $v['areaid']))}">{$v[areaname]}车主({$v['areanum']})</a></li>
		    {/loop}
	    </ul>
    </div>
    <div class="shop-guide-con fn-left">
        <div class="shop-guide-con-hd">
            <p>车主信息：<span>全部</span></p>
        </div>
        <ul class="shop-guide-list">
	        {if $ownersSummary}
	        {loop $ownersSummary $v}
	        <li class="fn-clear">
                <span class="owner-img bd fn-left" ><img src="{AutoOwners::byPhoto($v['username'])}" width='102'></span>
                <div class="owner-des fn-left">
                    <h4 class="cblue">{$v['truename']}</h4>
	                <dl class="mycar fn-clear">
		                <dt>我的爱车：</dt>
		                {loop $v['modelinfo'] $k=>$vs}
		                <dd><a href="{url('auto/model', 'modelid='.$vs['amid'])}" title="{$vs['name']}" target="_blank">
			                {$v['carinfo'][$k]['name']} {$vs['name']}
		                </a></dd>
		                {/loop}
	                </dl>
	                {if $v['likecar']}
	                <dl class="myfocus fn-clear">
		                <dt>我最近关注的车型：</dt>
		                {loop $v['likecar'] $vc}
		                {if $vc['model']}
		                <dd>
			                <a href="{url('auto/model', 'modelid='.$vc['amid'])}" title="{$vc['model']['name']}" target="_blank">
			                {$vc['car']['name']} {$vc['model']['name']}
		                    </a>
		                </dd>
		                {/if}
		                {/loop}
	                </dl>
	                {/if}
                </div>
                <div class="owner-loc fn-left">
	                {loop $v['areaname'] $area}
	                 {if $area!='国内'}
	                     {$area}
	                 {/if}
	                {/loop}
                </div>
                <div class="owner-oper fn-right">
                    <a href="{url('member/friend', 'action=add&username='.$item['username'])}" >加为好友</a>
                    <a href="{url('member/message', 'action=send&touser='.$item['username'])}">发信息</a>
                </div>
            </li>
			{/loop}
        </ul>
	    {template 'pager', 'inc'}
	    {else}
	    <!--{template 'noauto', 'message'}-->
	    {/if}
    </div>
</div>
{template 'footer'}